package kr.hkit.powerjava.chapter12.work;

public class Person implements Comparable<Person>{
	private String name;
	private int height;
	
	public Person(String name, int height) {
		super();
		this.name = name;
		this.height = height;
	}

	@Override
	public int compareTo(Person o) {
		
		return height-o.height;
	}
	

}
